//
//  ZHBaseViewController.m
//  Doctor
//
//  Created by liuzhishan on 15/12/22.
//  Copyright © 2015年 shanshan. All rights reserved.
//

#import "ZHBaseViewController.h"

@interface ZHBaseViewController ()

@property (nonatomic,retain) UIImageView *imageTitleBg;
@property (nonatomic,retain) UIImageView *imageDownBg;

@end

@implementation ZHBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self addMyBaseBgViews];
    [self addMyBaseBgViews];
    
}

-(void)addMyBaseBgViews
{
    
    self.imageBg = [[UIImageView alloc]init];
    self.imageBg.image = [UIImage imageNamed:@"login-background"];
    self.imageBg.frame = self.view.bounds;
    [self.view addSubview:self.imageBg];
    
    
    
    self.imageTitleBg = [[UIImageView alloc]init];
    //    self.imageTitleBg.image = [UIImage imageNamed:@"Login-up"];
    
    self.imageTitleBg.backgroundColor = NAVIUPBGCOLOR;
    [self.imageTitleBg setMyFramewithX:0 andY:0 andWidth:1024 andHeight:68];
    [self.view addSubview:self.imageTitleBg];
    
    
    self.imageDownBg = [[UIImageView alloc]init];
    //self.imageDownBg.image = [UIImage imageNamed:@"Login-under"];
    self.imageDownBg.backgroundColor = NAVIDOWNBGCOLOR;
    [self.imageDownBg setMyFramewithX:0 andY:719 andWidth:1024 andHeight:49];
    [self.view addSubview:self.imageDownBg];
    
    
   
    
    self.naviTitleLable = [[UILabel alloc]init];
    self.naviTitleLable.textAlignment = NSTextAlignmentCenter;
    self.naviTitleLable.textColor = [UIColor whiteColor];
    [self.naviTitleLable setMyFramewithX:0 andY:20 andWidth:320 andHeight:48];
    self.naviTitleLable.centerX = self.view.centerX;
    [self.view addSubview:self.naviTitleLable];
    self.naviTitleLable.font = [UIFont systemFontOfSize:30*WIDPro -2];

    
    
    
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
